package com.mdc.mansion.common.mapper;

import java.io.IOException;
import java.util.Date;

import com.mdc.mansion.common.util.DateUtils;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;
public class JsontStandardDateSerializer extends JsonSerializer<Date>{
	@Override
	public void serialize(Date value, JsonGenerator jgen,
			SerializerProvider provider) throws IOException,
			JsonProcessingException {
		jgen.writeString(DateUtils.formatStandardDate(value));
	}

}
